<template>
	<div class="box"></div>
	<Row>
		<Button type="default" @click="add">操作</Button>
	</Row>
</template>
<script>
export default {
	data() {
		return {
			a: 1,
			b: 2
		}
	},
	methods: {
		add() {
			console.log(`helloworld`);
			//255.255.255.255
			let reg = /^(?:[12]?\d{1,2}\.){3}(?:[12]?\d{1,2})$/;
			// reg = /[12]?\d\./
			let str = '192.168.11.133'
			// str = '1922.'
			let match = reg.test(str);
			console.log(match);

			str = '';
			reg = /^(?:)$/
			match = reg.test(str);
			console.log(`[^\d]`, match);
		}
	}
}
</script>
<style lang="scss" scoped>
.box {
	height: 100px;
	width: 100px;
	border: 1px solid #000;
}
</style>